package com.yan.iftest;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        // 定义三个数的变量
        int a, b, c;
        a = scanner.nextInt();
        b = scanner.nextInt();
        c = scanner.nextInt();
        // if语句比较
        if (a > b){
            if(b > c){
                System.out.println(c);
            }else{
                System.out.println(b);
            }
        }else{
            if(a < c){
                System.out.println(a);
            }else{
                System.out.println(c);
            }
        }
    }
}
